import apibase from "@/api/apiBase";
import axios from "axios";
import{dicDataInterface} from "./free.interface"
//菜单
export const $freeAdminNodeList = () => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/travel/auth/adminNodeList',
    data: {},
    instance,
  });
}

//字典
export const $freeDictData = (params:dicDataInterface) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/travel/free/dictData',
    data:params,
    instance,
  });
}
//查询省市区
export const $commonGetAreaList = () => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/api/common/getAreaList',
    data: {},
    instance,
  });
}